package com.hospital.doctor.service;

import com.hospital.doctor.mapper.OperationMapper;
import com.hospital.doctor.pojo.Operation;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OperationServiceImpl implements OperationService {

    @Autowired
    private OperationMapper operationMapper;

    @Override
    public List<Operation> selectBypId(int pId) {
        return operationMapper.selectBypId(pId);
    }

    @Override
    public int insert(Operation operation) {

        return operationMapper.insert(operation);
    }

    @Override
    public Operation selectByoId(int oId) {
        return operationMapper.selectByoId(oId);
    }
}
